
package com.tools.cleanmaster.model.item;

import java.util.ArrayList;
import java.util.List;

public class PathUpdateInfo {
    /** 路径唯一id */
    public String pathId="-1";

    /** 更新时间 */
    public long updateTime;

    /** 路径 */
    public String path;

    /** en短描信息 */
    public String desc;

    /** en短描信息ID */
    public long descID;

    /** 当前短描信息 */
    public String localDesc;

    /** 当前短描语言ID */
    public int localLid;

    /** 缓存类型 */
    public int inst_sugg;

    /** 缓存深度垃圾说明 */
    public String inst_desc;

    /** 卸载残留类型 */
    public int unin_sugg;

    /** 卸载残留深度垃圾说明 */
    public String unin_desc;

    /** 删除/更新　０/1 */
    public int type;

    public int lid;

    /** 包名列表 */
    public List<DescriptionPackage> pkgs = new ArrayList<DescriptionPackage>();

    public DescriptionPackage getPkgInstance(){
        return new DescriptionPackage();
    }

    public class DescriptionPackage{
        public String mPkg;
        public String mAppName;
    }

    public String toString(){
        StringBuffer descriptionPackageString  = new StringBuffer();
        for(int i = 0;i<pkgs.size();i++){
            StringBuffer partString = new StringBuffer("[");
            DescriptionPackage pkgDescriptionPackage = pkgs.get(i);
            partString.append(pkgDescriptionPackage.mAppName);
            partString.append(","+pkgDescriptionPackage.mPkg);
            partString.append("]");
            descriptionPackageString.append(partString);
        }
        return "id = "+this.pathId + ",update time = "+updateTime + ",path = "+path + ",desc = "+desc + ", inst_sugg = "+inst_sugg + ",inst_desc = "+inst_desc+
                "unin_sugg = "+unin_sugg + "unin_desc = "+unin_desc + " , type = "+type + "lid = "+lid + ",pkginfo = "+descriptionPackageString;
    }
}
